<%-- 
    Document   : index
    Created on : 2012-11-2, 11:37:45
    Author     : developer
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <script type="text/javascript">
            var savaItemInfoUrl="";
            savaItemInfoUrl="?className=cn.com.jsepc.rep.report.Fact_table";
            savaItemInfoUrl+="&methodName=createtable";
            savaItemInfoUrl+="&paramCount=0";
            savaItemInfoUrl=basePath+"JarpListener"+savaItemInfoUrl;
            httpR_itemInfo = getXMLHttpRequest();
            httpR_itemInfo.onreadystatechange = resultfn;
            httpR_itemInfo.open("POST", savaItemInfoUrl, true);
            httpR_itemInfo.send();

            function resultfn(){
                if (httpR_itemInfo.readyState == 4) {
                    if (httpR_itemInfo.status == 200) {
                        ret = httpR_itemInfo.responseText;
                        if(ret=="ok"){
                            alert("事实表全部创建成功！");
                        }
                        else{
                            alert("部分事实表创建失败！");
                        }
                    }
                }
            }
        </script>
    </body>
</html>
